package com.ruoyi.goods.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品列表对象 goods
 *
 * @author ruoyi
 * @date 2024-12-20
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一标识 */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String goodsInfo;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品图片路径 */
    @Excel(name = "商品图片路径")
    private Long goodsImgId;

    /** 商家外键id */
    @Excel(name = "商家外键id")
    private Long goodsShopId;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long goodsNum;

    /** 商品状态(1：上架,2：下架，3：审核) */
    @Excel(name = "商品状态(1：上架,2：下架，3：审核)")
    private Long goodsStatus;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long goodsCategoryId;

    /** 整数 */
    @Excel(name = "整数")
    private Long goodsNumber;

    /** 小数 */
    @Excel(name = "小数")
    private String goodsDecimal;

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }
    public void setGoodsInfo(String goodsInfo)
    {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsInfo()
    {
        return goodsInfo;
    }
    public void setGoodsPrice(BigDecimal goodsPrice)
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice()
    {
        return goodsPrice;
    }
    public void setGoodsImgId(Long goodsImgId)
    {
        this.goodsImgId = goodsImgId;
    }

    public Long getGoodsImgId()
    {
        return goodsImgId;
    }
    public void setGoodsShopId(Long goodsShopId)
    {
        this.goodsShopId = goodsShopId;
    }

    public Long getGoodsShopId()
    {
        return goodsShopId;
    }
    public void setGoodsNum(Long goodsNum)
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum()
    {
        return goodsNum;
    }
    public void setGoodsStatus(Long goodsStatus)
    {
        this.goodsStatus = goodsStatus;
    }

    public Long getGoodsStatus()
    {
        return goodsStatus;
    }
    public void setGoodsCategoryId(Long goodsCategoryId)
    {
        this.goodsCategoryId = goodsCategoryId;
    }

    public Long getGoodsCategoryId()
    {
        return goodsCategoryId;
    }
    public void setGoodsNumber(Long goodsNumber)
    {
        this.goodsNumber = goodsNumber;
    }

    public Long getGoodsNumber()
    {
        return goodsNumber;
    }
    public void setGoodsDecimal(String goodsDecimal)
    {
        this.goodsDecimal = goodsDecimal;
    }

    public String getGoodsDecimal()
    {
        return goodsDecimal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsInfo", getGoodsInfo())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsImgId", getGoodsImgId())
            .append("goodsShopId", getGoodsShopId())
            .append("goodsNum", getGoodsNum())
            .append("goodsStatus", getGoodsStatus())
            .append("goodsCategoryId", getGoodsCategoryId())
            .append("goodsNumber", getGoodsNumber())
            .append("goodsDecimal", getGoodsDecimal())
            .toString();
    }
}
